//
//  UnConfHead.m
//  test
//
//  Created by 李彦宏 on 2018/3/8.
//  Copyright © 2018年 朱圳. All rights reserved.
//

#import "UnConfHead.h"

@implementation UnConfHead

//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    UILabel *lb1=[[UILabel alloc]initWithFrame:CGRectMake(30, 8, 35, 25)];
    lb1.text=@"日期";
    lb1.textAlignment=NSTextAlignmentCenter;
    lb1.font=[UIFont systemFontOfSize:15];
    lb1.textColor=[UIColor blackColor];
    [self.contentView addSubview:lb1];
    
    UILabel *lb2=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/4+20, 8, 35, 25)];
    lb2.text=@"内容";
    lb2.textAlignment=NSTextAlignmentCenter;
    lb2.font=[UIFont systemFontOfSize:15];
    lb2.textColor=[UIColor blackColor];
    [self.contentView addSubview:lb2];
    
    UILabel *lb3=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/2+20, 8, 35, 25)];
    lb3.text=@"金额";
    lb3.textAlignment=NSTextAlignmentCenter;
    lb3.font=[UIFont systemFontOfSize:15];
    lb3.textColor=[UIColor blackColor];
    self.SumMoney=lb3;
    [self.contentView addSubview:lb3];
    
    UILabel *lb4=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-65, 8, 35, 25)];
    lb4.text=@"状态";
    lb4.textAlignment=NSTextAlignmentCenter;
    lb4.font=[UIFont systemFontOfSize:15];
    lb4.textColor=[UIColor blackColor];
    self.caozuoLb=lb4;
    [self.contentView addSubview:lb4];
}



@end
